package org.study.event.test.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.study.event.test.mapper.OrderDetailMapper;
import org.study.event.test.po.OrderDetail;
import org.study.event.test.service.OrderDetailService;

@Service
public class OrderDetailServiceImpl implements OrderDetailService {

	@Autowired
	private OrderDetailMapper orderDetailMapper;

	@Override
	public void saveOrderDetails(List<OrderDetail> orderDetails) {
		if (orderDetails != null) {
			orderDetailMapper.batchSaveOrderDetail(orderDetails);
		}
	}

}
